/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ipark.sistemski;

import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.tiling.scheduling.Scheduler;
import org.tiling.scheduling.SchedulerTask;
import org.tiling.scheduling.examples.iterators.DailyIterator;
/**
 *
 * @author Damjan Vantur
 */
public class Schedul {
 private final Scheduler scheduler = new Scheduler();
 private BazaStatko bz = new BazaStatko();
    //predefiniram run
    public void start() {
      SchedulerTask st = new SchedulerTask(){
          
            //to se bo izvedlo
            public void run() {
                 //metoda ki se bo izvedla
                bz.fileToDB();
            }

      };
      DailyIterator di = new DailyIterator(0, 0, 0);
       
       //kdaj v casu mi naj dejansko updata
      scheduler.schedule(st, di);  

    }  
}
